package com.whc.api.client;

import com.whc.api.config.DefaultFeignConfig;
import com.whc.common.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "orders-service",configuration = DefaultFeignConfig.class)
public interface OrdersClient {
    //修改订单为已支付
    @PutMapping("/client/order/toPayOrders")
    Result toPayOrders(@RequestParam("orderNumber") Long orderNumber);

}
